package com.example.shop.mapper;

import com.example.shop.model.Role;
import com.example.shop.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface RoleMapper extends Mapper<Role> {
    int updateUserRole(User user);
    int dataCount();
    List<Role> getRolePageBean(@Param("startNum") int startNum, @Param("pageSize") int pageSize, @Param("search") String search);
}
